package file;

import java.io.File;

public class DeleteFileDemo {
    public static void main(String[] args) {
        //将当前目录下的test.txt文件删除
        File file = new File("./test.txt");
        file.delete();
    }
}
